/**
 * 
 */
package com.freecsim.sas.core.exception;

/**
 * @author georgewu
 *
 */
public class ServiceException extends Exception {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * 异常码
	 */
	private int errcode;

	public ServiceException() {
		super();
	}

	

	public ServiceException(String message, Throwable cause) {
		super(message, cause);
	}



	public ServiceException(String message) {
		super(message);
	}



	public ServiceException(Throwable cause) {
		super(cause);
	}

	public ServiceException(String message, Throwable cause, int errcode) {
		super(message, cause);
		this.errcode = errcode;
	}

	public ServiceException(String message, int errcode) {
		super(message);
		this.errcode = errcode;
	}
	
	public ServiceException(Throwable cause, int errcode) {
		super(cause);
		this.errcode = errcode;
	}
	
	public ServiceException(int errcode) {
		super();
		this.errcode = errcode;
	}

	/**
	 * @return the errcode
	 */
	public int getErrcode() {
		return errcode;
	}
}
